﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Are coordinates within circle</title>
    <link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
    <div id="js-console"></div>
	<script src="scripts/js-console.js"></script>

    <script>
        var x = 3;
        var y = 2;
        var radius = 5;
        var line = Math.sqrt(x * x + y * y);

        if (radius>=line) {
            jsConsole.writeLine("Point with these coordinates is within the circle,");
        }
        else {
            jsConsole.writeLine("Point with these coordinates is not within the circle.");
        }
    </script>
</body>
</html>
